<?php

namespace Trawind\Basics\Traits\Transform;


trait ValidationAttributes
{

    public function attributes(): array
    {
        $attributes = [];
        foreach (static::transformMap() as $field => $map) {
            $attributes[$field] = __('validation.attributes.'.$map);
        }

        return $attributes;
    }


    protected static function transformMap(): array
    {
        return [];
    }

}